package com.heitian.ssm.service.impl;

import com.heitian.ssm.dao.LimitDao;
import com.heitian.ssm.model.Limit;
import com.heitian.ssm.service.LimitService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class LimitServiceImpl implements LimitService{
    private Logger log = Logger.getLogger(LimitServiceImpl.class);

    @Resource
    private LimitDao limitDao;

    public List<Limit> getAll() {
        return limitDao.selectAllLimit();
    }

}
